package org.nerve.webmagic.bean;

import java.io.Serializable;

/**
 * org.nerve.webmagic.bean
 * Created by zengxm on 2016/4/21 0021.
 */
public class WebPage implements Data,Serializable {
	public static final String DOMAIN="domain";
	public static final String URL="url";
	public static final String HTML="html";
	public static final String TITLE="title";
	public static final String SCREENSHOT="screenShot";
	public static final String DRIVER="driver";

	private String driver;          //采集工具标识
	private String url;
	private String domain;
	private String html;
	private long pickTime;          //采集时间
	private String title;
	private String screenShot;      //base64编码后的截图数据
	private String collector;       //采集器ID

	public String getDriver() {
		return driver;
	}

	public WebPage setDriver(String driver) {
		this.driver = driver;
		return this;
	}

	public String getUrl() {
		return url;
	}

	public WebPage setUrl(String url) {
		this.url = url;
		return this;
	}

	public String getDomain() {
		return domain;
	}

	public WebPage setDomain(String domain) {
		this.domain = domain;
		return this;
	}

	public String getHtml() {
		return html;
	}

	public WebPage setHtml(String html) {
		this.html = html;
		return this;
	}

	public long getPickTime() {
		return pickTime;
	}

	public WebPage setPickTime(long pickTime) {
		this.pickTime = pickTime;
		return this;
	}

	public String getTitle() {
		return title;
	}

	public WebPage setTitle(String title) {
		this.title = title;
		return this;
	}

	public String getScreenShot() {
		return screenShot;
	}

	public WebPage setScreenShot(String screenShot) {
		this.screenShot = screenShot;
		return this;
	}

	public String getCollector() {
		return collector;
	}

	public WebPage setCollector(String collector) {
		this.collector = collector;
		return this;
	}
}
